package best.driver.android.Model;

import com.activeandroid.Model;
import com.activeandroid.annotation.Column;
import com.activeandroid.annotation.Table;

/**
 * Created by xiangxuefeng on 15/8/18.
 */

@Table(name = "driver_position")
public class DriverPositionModel extends Model {

    public static final String WORK_STATUS_FREE = "FREE";

    public static final String WORK_STATUS_BUSY = "BUSY";

    public static String WORK_STATUS_HALF_LOAD = "HALF_LOAD";

    public static String DRIVER_NORMAL = "NORMAL";

    public static String DRIVER_CONTRACT = "CONTRACT";

    @Column(name = "lat", notNull = true)
    public double lat = 0.0;

    @Column(name = "lng", notNull = true)
    public double lng = 0.0;

    @Column(name = "accuracy", notNull = true)
    public float accuracy = 0.0f;

    @Column(name = "status", notNull = true)
    public String status = "";

    @Column(name = "driver_type", notNull = true)
    public String type = DRIVER_NORMAL;

    @Column(name = "direction", notNull = false)
    public double direction = 0.0;

    @Column(name = "height", notNull = false)
    public double height = 0.0;

    @Column(name = "accelerate", notNull = false)
    public double accelerate = 0.0;

    @Column(name = "time_stamp", notNull = true, unique = true)
    public long timeStamp = System.currentTimeMillis();
}
